import request from '@/utils/request'

// 查询报名登记学生列表
export function pageSignStudentApply(query) {
  return request({
    url: '/signStudentInSystem/list',
    method: 'get',
    params: query
  })
}

// 查询报名登记学生列表
export function listSignStudentApply(query) {
  return request({
    url: '/signStudentInSystem/list',
    method: 'get',
    params: query
  })
}

// 查询报名登记学生详细
export function getSignStudentApply(id) {
  return request({
    url: '/signStudentInSystem/' + id,
    method: 'get'
  })
}


// 新增报名登记学生
export function addSignStudentApply(data) {
  return request({
    url: '/signStudentInSystem/signStudentApply',
    method: 'post',
    data: data
  })
}

// 首页登录报名

export function addSignStudentApplyIndex(data) {
  return request({
    url: '/signStudentInSystem/signStudentApply',
    method: 'post',
    data: data
  })
}



// 修改报名登记学生
export function updateSignStudentApply(data) {
  return request({
    url: '/signStudentInSystem/signStudent',
    method: 'put',
    data: data
  })
}

// 删除报名登记学生

export function delSignStudentApply(id) {
  return request({
    url: '/signStudentInSystem/' + id,
    method: 'delete'
  })
}

// 导出报名登记学生
export function exportSignStudentApply(query) {
  return request({
    url: '/signStudentInSystem/export',
    method: 'get',
    params: query
  })
}

export function getStudents(certNumber) {
  return request({
    url: '/signStudentInSystem/getStudents?certNumber='+certNumber,
    method: 'get',

  })
}

export function sendSMS(ids) {
  return request({
    url: '/signStudentInSystem/sendSMS/',
    data:ids,
    method: 'post',

  })
}



// 查询报名登记学生列表
export function searchSchoolByNamexx(schoolName) {
  return request({
    url: '/signStudentInSystem/searchSchoolByName?schoolName='+schoolName,
    method: 'get'
  })
}

export function checkIn(id,query) {
  return request({
    url: '/signStudentInSystem/check/' + id,
    method: 'get',
    params: query
  })
}




//获取准备测量的10个学生
export function getStudentNeedToProportion() {
  return request({
    url: '/signStudentInSystem/getStudentNeedToProportion/' ,
    method: 'get'
  })
}
